package com.ruoyi.market.domain;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.material.domain.Handbook;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 礼物对象 gift
 *
 * @author ruoyi
 */
public class Gift extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 礼物ID
     */
    private Long giftId;

    /**
     * 礼物图鉴手册ID
     */
    private Long handbookId;

    /** 店铺ID */
    private String shopId;

    /**
     * 帐号状态（0正常 1停用）
     */
    private String status;

    /**
     * 排序
     */
    private Long giftSort;

    /**
     * 礼物数量
     */
    private int giftCount;

    /**
     * 礼物价格
     */
    private BigDecimal giftPrice;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 所属店铺信息   */
    private ConfigBase shopInfo;

    /** 所属店铺信息   */
    private Handbook handbook;

    public Gift() {

    }

    public Gift(Long giftId) {
        this.giftId = giftId;
    }

    public Long getGiftId() {
        return giftId;
    }

    public void setGiftId(Long giftId) {
        this.giftId = giftId;
    }

    public Long getHandbookId() {
        return handbookId;
    }

    public void setHandbookId(Long handbookId) {
        this.handbookId = handbookId;
    }

    public String getShopId(){ return shopId; }

    public void setShopId(String shopId){ this.shopId = shopId; }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Long getGiftSort() {
        return giftSort;
    }

    public void setGiftSort(Long giftSort) {
        this.giftSort = giftSort;
    }

    public int getGiftCount() {
        return giftCount;
    }

    public void setGiftCount(int giftCount) {
        this.giftCount = giftCount;
    }

    public BigDecimal getGiftPrice() {
        return giftPrice;
    }

    public void setGiftPrice(BigDecimal giftPrice) {
        this.giftPrice = giftPrice;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public ConfigBase getShopInfo()
    {
        return shopInfo;
    }

    public void setShopInfo(ConfigBase shopInfo)
    {
        this.shopInfo = shopInfo;
    }

    public Handbook getHandbook(){ return handbook; }

    public void setHandbook(Handbook handbook)
    {
        this.handbook = handbook;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("giftId", getGiftId())
                .append("shopId", getShopId())
                .append("handbookId", getHandbookId())
                .append("giftSort", getGiftSort())
                .append("giftPrice", getGiftPrice())
                .append("giftCount", getGiftCount())
                .append("handbook", getHandbook())
                .append("shopInfo", getShopInfo())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .append("status", getStatus())
                .toString();
    }
}
